<?php
    include_once 'database.php';
    include_once 'session_start.php';
    $query = "INSERT INTO itemhistory(Action,MaterialId,UserId)
              VALUES('".$action."',".$_GET["id"].",".$_SESSION["User"]["Id"].")";
    $db->query($query);              
?>